<?php if($error): ?>
<div class="notification information png_bg">
	<div><?php echo $error_msg; ?></div>
</div>
<?php endif; ?>
<div class="notification error png_bg display-none jqLoginFormErrorNotification">
	<div>
		Existem erros no formulário.
		<ol style="list-style:decimal" id="loginFormErrorList"></ol>
	</div>
</div>
<form id="loginForm" method="post" action="<?php echo $action; ?>">
    <p>
        <label>Usu&aacute;rio</label>
        <input class="text-input {validate: {required: true, messages: {required: 'Por favor, preencha o campo usuário.'}}}" type="text" id="login" name="login" value="<?php echo $login; ?>" />
    </p>
    <div class="clear"></div>
    <p>
        <label>Senha</label>
        <input class="text-input {validate: {required:true, messages: {required: 'Por favor, preencha o campo senha.'}}}" type="password" id="senha" name="senha" />
    </p>
    <div class="clear"></div>
    <div style="padding-left: 89px;">
	<?php echo form_dropdown('role', $usuariosOpcoes);?>
	</div>
	<br /><br />
    <div class="clear"></div>
    <p id="remember-password">
        <input type="checkbox" <?php if($remember_checked): ?> checked="checked" <?php endif; ?> name="remember_user" value="1"/>Lembrar usu&aacute;rio?
    </p>
    <div class="clear"></div>
    <p>
        <input class="button" type="submit" value="Login" />
    </p>
    
</form>
<div id="error"><ol></ol></div>